package site.assad.ditype;

/**
 * Author: Al-assad 余林颖
 * E-mail: yulinying_1994@outlook.com
 * Date: 2017/11/29 22:25
 * Description: 用于演示工厂方法依赖注入的Bean
 */
public class UserFactory {
    public User createUser(){
        User user  = new User();
        return user;
    }
    public User createGuangzhouUser(){
        User user = new User();
        user.setCity("Guangzhou");
        return user;
    }
}
